Optimal. Leaf size=63 \[ \frac {(a+b) \log \left (a+b \sin ^2(c+d x)\right )}{2 a^2 d}-\frac {(a+b) \log (\sin (c+d x))}{a^2 d}-\frac {\csc ^2(c+d x)}{2 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3194, 77} \[ \frac {(a+b) \log \left (a+b \sin ^2(c+d x)\right )}{2 a^2 d}-\frac {(a+b) \log (\sin (c+d x))}{a^2 d}-\frac {\csc ^2(c+d x)}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 3194
Rubi steps
\begin {align*} \int \frac {\cot ^3(c+d x)}{a+b \sin ^2(c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1-x}{x^2 (a+b x)} \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {1}{a x^2}+\frac {-a-b}{a^2 x}+\frac {b (a+b)}{a^2 (a+b x)}\right ) \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=-\frac {\csc ^2(c+d x)}{2 a d}-\frac {(a+b) \log (\sin (c+d x))}{a^2 d}+\frac {(a+b) \log \left (a+b \sin ^2(c+d x)\right )}{2 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 50, normalized size = 0.79 \[ -\frac {(a+b) \left (2 \log (\sin (c+d x))-\log \left (a+b \sin ^2(c+d x)\right )\right )+a \csc ^2(c+d x)}{2 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 91, normalized size = 1.44 \[ \frac {{\left ({\left (a + b\right )} \cos \left (d x + c\right )^{2} - a - b\right )} \log \left (-b \cos \left (d x + c\right )^{2} + a + b\right ) - 2 \, {\left ({\left (a + b\right )} \cos \left (d x + c\right )^{2} - a - b\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + a}{2 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} - a^{2} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 108, normalized size = 1.71 \[ \frac {\frac {\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} + \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1}}{a} + \frac {4 \, {\left (a + b\right )} \log \left ({\left | -a {\left (\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right ) - 1} + \frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1}\right )} + 2 \, a + 4 \, b \right |}\right )}{a^{2}}}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.66, size = 161, normalized size = 2.56 \[ \frac {1}{4 d a \left (\cos \left (d x +c \right )-1\right )}-\frac {\ln \left (\cos \left (d x +c \right )-1\right )}{2 d a}-\frac {\ln \left (\cos \left (d x +c \right )-1\right ) b}{2 d \,a^{2}}+\frac {\ln \left (b \left (\cos ^{2}\left (d x +c \right )\right )-a -b \right )}{2 d a}+\frac {\ln \left (b \left (\cos ^{2}\left (d x +c \right )\right )-a -b \right ) b}{2 d \,a^{2}}-\frac {1}{4 a d \left (1+\cos \left (d x +c \right )\right )}-\frac {\ln \left (1+\cos \left (d x +c \right )\right )}{2 d a}-\frac {\ln \left (1+\cos \left (d x +c \right )\right ) b}{2 d \,a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 56, normalized size = 0.89 \[ \frac {\frac {{\left (a + b\right )} \log \left (b \sin \left (d x + c\right )^{2} + a\right )}{a^{2}} - \frac {{\left (a + b\right )} \log \left (\sin \left (d x + c\right )^{2}\right )}{a^{2}} - \frac {1}{a \sin \left (d x + c\right )^{2}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 14.46, size = 69, normalized size = 1.10 \[ \frac {\ln \left (a+a\,{\mathrm {tan}\left (c+d\,x\right )}^2+b\,{\mathrm {tan}\left (c+d\,x\right )}^2\right )\,\left (a+b\right )}{2\,a^2\,d}-\frac {{\mathrm {cot}\left (c+d\,x\right )}^2}{2\,a\,d}-\frac {\ln \left (\mathrm {tan}\left (c+d\,x\right )\right )\,\left (a+b\right )}{a^2\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cot ^{3}{\left (c + d x \right )}}{a + b \sin ^{2}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________